Distributed connectivity policy enforcement with ice

ABSTRACT

Instead of utilizing a centralized server or hardware (routers/gateways) to enforce connectivity policy restrictions, the policy connectivity restrictions for media session traffic are enforced by an endpoint that is involved in the media communication. Based on the policy requirements, the client enforces the policy restrictions by restricting the candidates that may be selected for the establishment of the media path. For example, the enforcement may result in the client selecting a path from available candidates that avoids congested Wide Area Network (WAN) links, avoiding a low bandwidth link, or possibly even failing the communication completely. The clients may also provide periodic updates to the policy server to allow tracking of the utilization of managed WAN links.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of, and claims priority to, priornon-provisional U.S. patent application Ser. No. 12/709,110, filed Feb.19, 2010, which application is incorporated herein by reference in itsentirety.

BACKGROUND

Interactive Connectivity Establishment (ICE) is a protocol that is usedfor establishing connectivity for Voice Over IP (VOIP) sessionstraversing net address translators (NATs) and firewalls. The ICEprotocol focuses on establishing the most efficient path in terms ofmedia latency. ICE is a general purpose connectivity protocol and thefinal path selected by ICE is based on priorities for the paths and isnot deterministic. There are situations where additional policyenforcement functionality may be desired. For example, enterprises mightwant the media traffic of a group of employees to flow through aspecific path. This could be to provide a secure and controlled mediachannel for sensitive communication, for monitoring and recording ofmedia traffic, and the like. The most efficient path might utilize anexpensive WAN which an enterprise might want to avoid to reduce cost.For such cases, an enterprise may not desire to establish mediaconnectivity when the required constraints for the media paths cannot bemet.

SUMMARY

This Summary is provided to introduce a selection of concepts in asimplified form that are further described below in the DetailedDescription. This Summary is not intended to identify key features oressential features of the claimed subject matter, nor is it intended tobe used as an aid in determining the scope of the claimed subjectmatter.

Policy restrictions that specify connection requirements for a mediacommunication are enforced by an endpoint of the communication. Theconnection requirements may relate to specifying that media of acommunication flow through a specific path, that the media flow avoidcertain media paths, and the like. Instead of utilizing a centralizedserver or hardware (routers/gateways) to enforce connectivity policyrestrictions, the policy connectivity restrictions for media sessiontraffic are enforced by an endpoint that is involved in the mediacommunication. Based on the policy requirements, the client enforces thepolicy restrictions by restricting the candidates that may be selectedfor the establishment of the media path. For example, the enforcementmay result in the client selecting a path from available candidates thatavoids congested Wide Area Network (WAN) links, avoiding a low bandwidthlink, or possibly even failing the communication completely.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an exemplary computing environment;

FIG. 2 shows a communications system for a VoIP communication system;

FIG. 3 shows a high level overview of the interactions and entitiesinvolved in enforcing policy restrictions between two endpoints of acommunication; and

FIG. 4 shows an illustrative process for enforcing policy restrictions.

DETAILED DESCRIPTION

Referring now to the drawings, in which like numerals represent likeelements, various embodiment will be described. In particular, FIG. 1and the corresponding discussion are intended to provide a brief,general description of a suitable computing environment in whichembodiments may be implemented.

Generally, program modules include routines, programs, components, datastructures, and other types of structures that perform particular tasksor implement particular abstract data types. Other computer systemconfigurations may also be used, including hand-held devices,multiprocessor systems, microprocessor-based or programmable consumerelectronics, minicomputers, mainframe computers, and the like.Distributed computing environments may also be used where tasks areperformed by remote processing devices that are linked through acommunications network. In a distributed computing environment, programmodules may be located in both local and remote memory storage devices.

Referring now to FIG. 1, an illustrative computer environment for acomputer 100 utilized in the various embodiments will be described. Thecomputer environment shown in FIG. 1 may be configured as a server, aclient, a desktop or mobile computer, or some other type of computingdevice and includes a central processing unit 5 (“CPU”), a system memory7, including a random access memory 9 (“RAM”) and a read-only memory(“ROM”) 10, and a system bus 12 that couples the memory to the centralprocessing unit (“CPU”) 5.

A basic input/output system containing the basic routines that help totransfer information between elements within the computer, such asduring startup, is stored in the ROM 10. The computer 100 furtherincludes a mass storage device 14 for storing an operating system 16,application program(s) 24, other program modules 25, and policy manager26 which will be described in greater detail below.

The mass storage device 14 is connected to the CPU 5 through a massstorage controller (not shown) connected to the bus 12. The mass storagedevice 14 and its associated computer-readable media providenon-volatile storage for the computer 100. Although the description ofcomputer-readable media contained herein refers to a mass storagedevice, such as a hard disk or CD-ROM drive, the computer-readable mediacan be any available media that can be accessed by the computer 100.

By way of example, and not limitation, computer-readable media maycomprise computer storage media and communication media. Computerstorage media includes volatile and non-volatile, removable andnon-removable media implemented in any method or technology for storageof information such as computer-readable instructions, data structures,program modules or other data. Computer storage media includes, but isnot limited to, RAM, ROM, Erasable Programmable Read Only Memory(“EPROM”), Electrically Erasable Programmable Read Only Memory(“EEPROM”), flash memory or other solid state memory technology, CD-ROM,digital versatile disks (“DVD”), or other optical storage, magneticcassettes, magnetic tape, magnetic disk storage or other magneticstorage devices, or any other medium which can be used to store thedesired information and which can be accessed by the computer 100.

Computer 100 operates in a networked environment using logicalconnections to remote computers through a network 18, such as theInternet. The computer 100 may connect to the network 18 through anetwork interface unit 20 connected to the bus 12. The networkconnection may be wireless and/or wired. The network interface unit 20may also be utilized to connect to other types of networks and remotecomputer systems. The computer 100 may also include an input/outputcontroller 22 for receiving and processing input from a number of otherdevices, including a keyboard, mouse, or electronic stylus (not shown inFIG. 1). Similarly, an input/output controller 22 may provideinput/output to an IP phone 19, a display screen 23, a printer, or othertype of output device.

Carrier network 28 is a network responsible for communicating withmobile devices 29. The carrier network 28 may include both wireless andwired components. For example, carrier network 28 may include a cellulartower that is linked to a wired telephone network. Typically, thecellular tower carries communication to and from mobile devices, such ascell phones, notebooks, pocket PCs, long-distance communication links,and the like.

Gateway 27 routes messages between carrier network 28 and IP Network 18.For example, a call or some other message may be routed to a mobiledevice on carrier network 28 and/or route a call or some other messageto a user's device on IP network 18. Gateway 27 provides a means fortransporting the communication from the IP network to the carriernetwork. Conversely, a user with a device connected to a carrier networkmay be directing a call to a client on IP network 18.

As mentioned briefly above, a number of program modules and data filesmay be stored in the mass storage device 14 and RAM 9 of the computer100, including an operating system 16 suitable for controlling theoperation of a computer, such as WINDOWS COMMUNICATION SERVER®, WINDOWSSERVER® or the WINDOWS 7® operating system from MICROSOFT CORPORATION ofRedmond, Wash. The mass storage device 14 and RAM 9 may also store oneor more program modules. In particular, the mass storage device 14 andthe RAM 9 may store one or more application programs 24 and programmodules 25. User Interface 25 may be utilized to interact with one ormore programs.

Policy manager 26 is configured to enforce policy decisions at a clientlevel. According to one embodiment, policy manager 26 is deployed on oneor more client devices within the communications network that arecommunication endpoints. The policy manager 26 determines the policyrestrictions and uses the policy restrictions to select a media paththat meets the policy restrictions. The policy restrictions may bedetermined different ways. For example, a policy server may becontacted, the policy restrictions may be stored on the client, and/orthe policy manager may locate the policy restrictions on anothercomputing or storage device. Based on the policy decision, policymanager 26 selects the IP candidates that meet the requirementsspecified by the policy. The enforcement may result in policy manager 26removing one or more of the available IP candidates. For example, thepolicy restrictions may specify to avoid a certain path(s) based onbandwidth, cost, and the like. Policy manager 26 may also provideperiodic updates to a media server to allow tracking and utilization ofmanaged links.

According to one embodiment, policy manager 26 communicates with anapplication program 24 such as MICROSOFT's OFFICE COMMUNICATOR®. Whilepolicy manager 26 is illustrated as an independent program, thefunctionality may be integrated into other software and/or hardware,such as MICROSOFT's OFFICE COMMUNICATOR®. The operation of policymanager 26 is described in more detail below.

FIG. 2 shows a communications system for a VoIP communication system. Asillustrated, system 200 includes client 1 (204) and client 2 (205) thatare coupled to IP Network 18, client 3 (206) that is coupled to IPNetwork 2 (212), mobile device 1 (207) and mobile device 2 (208) thatare coupled to carrier network 28, communication server 210, TURN/STUNserver 209, and policy server 211 that are coupled to IP network 18,carrier gateway 27, gateway 215 coupled to PBX 225 through PSTN 220 andphone 1 (230). As illustrated, each of the clients includes a policymanager 26 that is used in enforcing policy restrictions. More or fewerclient devices may include policy manager 26. As briefly discussedabove, policy manager 26 is configured to enforce policy decisions forthe media flow of a communication at the client level instead ofrequiring a dedicated hardware solution.

The communications server 210 is configured to route incoming calls tothe appropriate destinations. Routing communication within system 200may be done different ways. For example, a telephone number may bemapped to a Session Initiation Protocol (SIP) Uniform Resource Indicator(URI) using a Reverse Number Lookup (RNL) process. By performing reversenumber lookup, the server 210 can route calls to endpoints associatedwith a particular user's SIP Uniform Resource Identifier (URI). Theserver may also utilize call authorization rules configured by anadministrator to route each call to the appropriate media gateway (i.e.carrier gateway 27, gateway 215). According to one embodiment,communications server 210 utilizes SIP. For more information on thisindustry standard protocol see IETF RFC 3261 which may be found athttp://www.ietf.org/rfc/rfc3261.txt. Generally, SIP defines a standardfor session setup, termination, and media negotiation between twoparties that is widely used for Voice-over-IP (VoIP) call signaling. TheSession Description Protocol (SDP), or some other protocol, may also beutilized by the system to define how multimedia sessions can beorganized as to allow the endpoints of the conversation to participate.

The communication server 210 routes calls to endpoints on the IP network(IP-IP calls); routes calls to the public switched telephone network(PSTN)/PBX (IP-PSTN calls) and may also route calls to destinationsusing other networks, such as a carrier network. The communicationserver may be coupled to the networks through one or more gateways. Agateway 215 translates signaling and media between the network and theIP voice infrastructure.

Communications server 210 may be configured to provide communicationservices for one or more locations. For example, communications server210 may be utilized for a business having branch offices that areconnected using IP Network 18 and/or other IP networks (e.g. IP Network2 (212)). For example, Client 3 may be located at a branch office whilecommunication server 210 is located at the main office.

Clients may use the Interactive Connectivity Establishment (ICE)protocol for Network Address Translator (NAT) traversal for multimediasession signaling protocols based on the offer/answer model, such as theSession Initiation Protocol (SIP). ICE uses the Simple Traversal of UDPthrough NAT (STUN) protocol in peer-to-peer cooperative fashion,allowing participants to discover, create and verify mutual connectivityA media server, such as TURN/STUN server 209, may be used to determinethe IP candidates to use for establishing a communication flow for aclient. Generally, STUN is a network protocol allowing a client behind aNAT (Network Address Translator) to find out its public address, thetype of NAT it is behind and the internet-side port associated by theNAT with a particular local port. Generally, Traversal Using Relay NAT(TURN) is a protocol that allows for an element behind a NAT or firewallto receive incoming data over TCP or UDP connections.

Using TURN/STUN server 209, a client, such as client 1, gathers all ofits candidates (its external IP addresses) when it is located behind aNAT. For purposes of the discussion, assume that client 1 is a callerthat decides to call client 2 (callee). The caller discovers all of theIP addresses that may be utilized for the conversation by requesting thecandidates from TURN/STUN server 209. For example, there may one, two,three, or more candidates. The discovered candidates are incorporatedinto the offer to the callee (client 2). On the callee side, client 2gathers all of its candidates using TURN/STUN server 209. Policy manager26 on the callee determines the policy restrictions for thecommunication and determines the candidates that are not restrictedbased on the policy restrictions. The policy restrictions may relate toone or more policy restrictions, such as bandwidth, call control,quality level, monitoring, intercept, and the like. The policyrestrictions may be stored on one or more devices. For example, policyserver 211 may store the policy restrictions, the client may store thepolicy restrictions, or some other storage device may store the policyrestrictions.

According to one embodiment, both of the endpoints for the communication(in this example client 1 and client 2) implement the ICE protocol asdefined in MS-ICE2. As discussed, the callee endpoint (client 2) onreceiving the invite offer from the caller endpoint (client 1) is awareof the caller's candidates. The callee endpoint at this point couldeither have been pre-configured with the connectivity policy or cancommunicate with a policy server, such as policy server 211, todetermine the connectivity policy. The connectivity policy decision mayrequire that some of the potential network paths using the caller's andcallee's candidates to be avoided or even to completely fail theestablishment of communication between the two endpoints. When thecallee (client 2) enforces the policy restraints, the callee removescandidates that are restricted by the policy and sends thenon-restricted candidates back to the caller. During the ICEconnectivity checks between the caller and the callee, the callee checksto determine that the caller does not use any of the restrictedcandidates. Since the caller endpoint is not aware of the policydecision, the callee endpoint is responsible for enforcing the policydecisions and ensuring the that restricted media paths are not used formedia flow. Using policy manager 26, the callee endpoint upon receivinga connectivity check packet checks to see if the local candidate orremote candidate for the connectivity check packet is restricted bypolicy checks. According to one embodiment, the remote candidate fromwhich the connectivity check packet is received is identified using acandidate-identifier attribute. The CANDIDATE-IDENTIFIER allows theendpoint receiving the STUN binding request packet to differentiatebetween candidates and uniquely identify the candidate even whenmultiple candidates are behind the same NAT.

According to one embodiment, two additional error codes are utilized forhandling connectivity checks for a restricted candidate, including anICE_ERRCODE_DISABLE_CANDIDATE error code and anICE_ERRCODE_DISABLE_CANDIDATE_PAIR. On the callee endpoint receiving aSTUN binding request connectivity check packet, If the local candidateis restricted a STUN binding error response is sent out withICE_ERRCODE_DISABLE_CANDIDATE_PAIR. If the remote candidate isrestricted then the a STUN binding response withICE_ERRCODE_DISABLE_CANDIDATE is sent out. The caller endpoint onreceiving the STUN binding error message withICE_ERRCODE_DISABLE_CANDIDATE PAIR disables the candidate pair for whichthe error response is sent, if it receives ICE_ERRCODE_DISABLE_CANDIDATEthe peer disables all candidate pairs associated with the localcandidate for which the error response was received. This mechanism isdirected at reducing the connectivity check retry attempts for candidatepairs with restricted candidates. For situations where the peer is notan ICE policy enforcement capable endpoint, the ICE policy enforcementcapable endpoint take on the role of the callee endpoint specifiedabove. This is useful for scenarios where the peer is a Gateway that isnot aware of ICE or policy enforcement. Policy management may be done bythe endpoint that has information about the peer's ip address. In mostsituations, the callee has this information. The remote candidateinformation is then sent to the policy server during the allocation ofcandidates on the callee. The policy server determines thelocation/policy settings of the caller and callee based on the allocaterequests that are embedded with the policy attributes.

In the situation where the TURN/STUN server 209 is an ICE endpoint andthe peer is a UDP endpoint, the IP address are known to the TURN/STUNserver since the TURN/STUN server knows the peer's candidate, the policymanagement can be done by the TURN/STUN server (caller in this scenario)even before sending out the invite. This scenario also applies to othercases where the caller is ICE and the callee is a UDP endpoint andpeer's IP address is know before sending out the invite. The TURN/STUNserver before sending the invite, configures the media stack with the IPaddress and enables bandwidth management. The media stack on theTURN/STUN server sends the remote candidate information to the policyserver and gets the policy decision during its allocation phase.

In the scenario where the TURN/STUN server is an ICE endpoint and thepeer is a non-ICE UDP endpoint, the policy management can be done by theTURN/STUN server independent of whether the TURN/STUN server is in aspread or concentrated topology since the peer's IP address are knownfrom the invite. This scenario applies to other cases where the calleeis ICE endpoint and the caller is a non-ICE endpoint. The TURN/STUNserver on the receiving the invite demotes the ICE endpoint to an UDPendpoint since no connectivity checks are needed. When the TURN/STUNserver receives a invite from a non-ICE endpoint, the media stack on theTURN/STUN server sends the peer's candidate to the policy server duringits allocation phase and performs bandwidth checks. If the bandwidthchecks fail between for the path between TURN/STUN server and thegateway then the call fails.

FIG. 3 shows a high level overview of the interactions and entitiesinvolved in enforcing policy restrictions between two endpoints of acommunication. As illustrated, system 300 comprises client 302, client304, TURN/STUN server 310, TURN/STUN server 312, policy server 320 andpolicy server 322.

Initially, client 302 sends an allocate request (AR) with a bandwidth(BW) request to a media relay server, such as TURN/STUN server 310. Inresponse to the request, the TURN/STUN server provides client 302 with alist of the local and remote candidates. Client 302 then makes an offerwith ICE to client 304. After receiving the offer, client 304 makes anallocation request with BW requested including the local and remotecandidates. TURN/STUN server 312 returns an allocate response with BWallocated for the local and remote candidates as indicated by thedecision of policy server 322. Generally, the policy servers obtain thepolicy information from a repository and provides the decisions back tothe clients. Client 304 then determines the candidates that do not meetthe requirements as determined by policy manager 26. The candidates thatdo not meet the quality requirements are removed before client 304 sendsthe answer with ICE back to client 302. In response to the answer,client 302 re-invites with ICE to client 304. A periodic keep alive mayalso be sent from a client, such as client 304 to TURN/STUN server 312that contains the candidate used and the raw send and received BW's.

Referring now to FIG. 4, an illustrative process for enforcing policyrestrictions will be described. When reading the discussion of theroutines presented herein, it should be appreciated that the logicaloperations of various embodiments are implemented (1) as a sequence ofcomputer implemented acts or program modules running on a computingsystem and/or (2) as interconnected machine logic circuits or circuitmodules within the computing system. The implementation is a matter ofchoice dependent on the performance requirements of the computing systemimplementing the invention. Accordingly, the logical operationsillustrated and making up the embodiments described herein are referredto variously as operations, structural devices, acts or modules. Theseoperations, structural devices, acts and modules may be implemented insoftware, in firmware, in special purpose digital logic, and anycombination thereof.

After a start block, the process flows to operation 410, where thecaller determines its candidates that may be used in establishing acommunication. According to one embodiment, the caller uses a TURN/STUNserver to determine the candidates that may be utilized.

Moving to operation 420, an offer including the determined candidates issent to the callee from the caller.

Flowing to operation 430, the callee determines its candidates that maybe used to establish a communication. As discussed, a TURN/STUN servermay be used to determine the candidates.

Transitioning to operation 440, the callee determines the policyrestrictions that apply to the communication. The policy restrictionsmay be already known by the callee and/or the callee may access thepolicy restrictions on another computing device. For example, the calleemay request the policy restrictions from a policy server.

Moving to operation 450, the candidates that do not meet the policyrestrictions are removed from the determined candidates. A candidate maybe removed for many different reasons. For example, the candidate mayrequire an expensive connection that is restricted by the policy, thecandidate may result in too slow of a connection as specified by thepolicy, and the like.

Flowing to operation 460, the callee answers the offer from the callerand includes the candidates that have not been removed from the calleewithin the answer.

Moving to operation 470, during connectivity checks between the callerand the callee, the callee ensures that none of the candidates that wereremoved by the callee are used. The process then flows to an end blockand returns to processing other actions.

The above specification, examples and data provide a completedescription of the manufacture and use of the composition of theinvention. Since many embodiments of the invention can be made withoutdeparting from the spirit and scope of the invention, the inventionresides in the claims hereinafter appended.

What is claimed is:
 1. A method for enforcing policy restrictions for aconversation established over an Internet Protocol (IP) network,comprising: determining candidates for use in connecting a first clientwith a second client; wherein the first client and the second client areendpoints of the communication; determining a policy restriction thatspecifies a restriction on a media flow for the communication betweenthe first client and the second client; using at least one of theendpoints for removing any candidates from the candidates that arerestricted by the policy restriction; and establishing the conversationbetween the first client and the second client using the remainingcandidates.
 2. The method of claim 1, wherein determining the candidatesfor use in connecting the first client with the second client comprisessending a request to a server for candidates.
 3. The method of claim 2,wherein determining the candidates comprises the first clientdetermining candidates before sending an offer to the second client andthe second client determining candidates; and before returning a list ofcandidates to the first client for use in connectivity checks, thesecond client removing the candidates that are restricted by the policyrestriction.
 4. The method of claim 1, wherein the second client removesthe candidates from the candidates.
 5. The method of claim 4, whereinthe first client determines caller candidates and wherein the secondclient determines callee candidates.
 6. The method of claim 1, furthercomprising the second client returning the remaining clients to thefirst client with an answer to an offer made by the first client.
 7. Themethod of claim 6, further comprising during an Interactive ConnectivityEstablishment (ICE) connectivity check, the second client checking todetermine that the first client does not use any of the candidates thatwere removed.
 8. The method of claim 1, further comprising sending amessage to a server indicating a path selected for the media flow forthe communication.
 9. The method of claim 2, wherein determining thepolicy restriction comprises sending a request to a policy server.
 10. Acomputer-readable storage medium having computer-executable instructionsfor enforcing policy restrictions for a conversation established over anInternet Protocol (IP) network, comprising: a caller determining callercandidates and a callee determining callee candidates for use inestablishing a communication between the caller and the callee; whereinthe callee is an endpoint of the communication; determining a policyrestriction that specifies a restriction on a media flow for thecommunication between the caller and the callee; using the callee forremoving any candidates from the caller candidates and the calleecandidates that are restricted by the policy restriction; andestablishing the conversation between the caller and the callee usingthe remaining candidates.
 11. The computer-readable storage medium ofclaim 10, wherein determining the callee candidates and the callercandidates comprises the caller requesting the callee candidates and thecaller candidates from a server; wherein the caller and the calleeutilize the ICE protocol.
 12. The computer-readable storage medium ofclaim 11, wherein the callee candidates are included in an offer sent bythe caller to the callee before the callee determines the calleecandidates.
 13. The computer-readable storage medium of claim 10,further comprising the callee returning the remaining clients to thecaller with an answer to the offer made by the caller.
 14. Thecomputer-readable storage medium of claim 13, further comprising duringan ICE connectivity check, the callee checking to determine that thecaller does not use any of the candidates that were removed.
 15. Thecomputer-readable storage medium of claim 10, further comprisingperiodically sending a message to a server indicating a path selectedfor the media flow for the communication.
 16. A system for enforcingpolicy restrictions for a conversation established over an InternetProtocol (IP) network, comprising: a network connection that isconfigured to connect to the IP network; a processor and acomputer-readable medium; an operating environment stored on thecomputer-readable medium and executing on the processor; and a policymanager operating under the control of the operating environment andoperative to: receive caller candidates from a caller; determine calleecandidates for use in establishing a communication between the callerand the callee; determine a policy restriction that specifies arestriction on a media flow for the communication between the caller andthe callee; removing any candidates from the caller candidates and thecallee candidates that are restricted by the policy restriction; andestablishing the conversation between the caller and the callee usingthe remaining candidates.
 17. The system of claim 16, whereindetermining the callee candidates comprises requesting the calleecandidates from a server; wherein the callee utilizes the ICE protocol.18. The system of claim 16, further comprising returning the remainingclients to the caller with an answer to the offer made by the caller.19. The system of claim 18, further comprising during an ICEconnectivity check, checking to determine that the caller does not useany of the candidates that were removed.
 20. The system of claim 16,further comprising periodically sending a message to a server indicatinga path selected for the media flow for the communication.